package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 订单商品中间表对象 order_product
 * 
 * @author zhang
 * @date 2025-07-21
 */
public class OrderProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单商品编号 */
    private Long orderProductId;

    /** 订单商品_订单编号 */
    @Excel(name = "订单商品_订单编号")
    private Long orderProductOrderId;

    /** 订单商品_商品编号 */
    @Excel(name = "订单商品_商品编号")
    private Long orderProductProductId;

    /** 订单商品_商品个数 */
    @Excel(name = "订单商品_商品个数")
    private Long orderProductProductNum;

    // 商品 start===================================================
    private Product product; // 必须补充的商品对象关联字段

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }
    // 商品 end=====================================================

    public void setOrderProductId(Long orderProductId)
    {
        this.orderProductId = orderProductId;
    }

    public Long getOrderProductId() 
    {
        return orderProductId;
    }

    public void setOrderProductOrderId(Long orderProductOrderId) 
    {
        this.orderProductOrderId = orderProductOrderId;
    }

    public Long getOrderProductOrderId() 
    {
        return orderProductOrderId;
    }

    public void setOrderProductProductId(Long orderProductProductId) 
    {
        this.orderProductProductId = orderProductProductId;
    }

    public Long getOrderProductProductId() 
    {
        return orderProductProductId;
    }

    public void setOrderProductProductNum(Long orderProductProductNum) 
    {
        this.orderProductProductNum = orderProductProductNum;
    }

    public Long getOrderProductProductNum() 
    {
        return orderProductProductNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderProductId", getOrderProductId())
            .append("orderProductOrderId", getOrderProductOrderId())
            .append("orderProductProductId", getOrderProductProductId())
            .append("orderProductProductNum", getOrderProductProductNum())
            .toString();
    }
}
